package com.situ.water_user.service.impl;

import com.situ.water_user.pojo.UsMeter;
import com.situ.water_user.mapper.UsMeterMapper;
import com.situ.water_user.service.UsMeterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Angel
 * @since 2020-12-01
 */
@Service
public class UsMeterServiceImpl extends ServiceImpl<UsMeterMapper, UsMeter> implements UsMeterService {
    @Autowired
    UsMeterMapper usMeterMapper;

    @Override
    public void addMeter(UsMeter meter) {
        usMeterMapper.insert(meter);
    }

    @Override
    public UsMeter queryByUserNo(String userNo) {
        return usMeterMapper.queryByUserNo(userNo);
    }

    @Override
    public void hbMeter(UsMeter meter) {
        usMeterMapper.hbMeter(meter);
    }
}
